// 判断运行的环境
export function getEnvironmentType() {
  let environmentType = null;
  if (typeof window !== 'undefined') {
    if (typeof window.plus !== 'undefined') {
      // plus.webview 运行的环境
      environmentType = 'window_plus_has';
    } else {
      // 普通浏览器环境(h5)
      environmentType = 'window_plus_no';
    }
  } else {
    // app-plus环境，例如uni-app直接安装的APK/APP环境
    environmentType = 'app_plus';
  }

  return environmentType;
}
